<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" th:content="${settings.admin_global_nickname}"/>
    <meta name="description" th:content="${settings.seo_description}"/>
    <meta name="keywords" th:content="${settings.seo_keywords}"/>
    <link rel="shortcut icon" th:href="${settings.website_logo_small}">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>NotePress - 登录</title>
    <link rel="stylesheet" type="text/css" href="/static/def/plugins/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="/static/def/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/static/def/css/login-registration.css">
</head>
<body>
<div class="layui-row user-login">
    <div class="layui-col-xs12 layui-col-sm12 layui-col-md12 layui-col-lg12">
        <form class="login-form layui-form">
            <div class="login-header">
                <h2 style="font-style: italic;">
                    <p><img th:src="${settings.website_logo_large}" style="height: 80px;"></p>
                </h2>
            </div>
            <div class="layui-row login-header">
                <div class="layui-col-md4">
                    <p><img th:src="${avatar}" class="layui-circle layui-avatar-model"></p>
                </div>
                <div class="layui-col-md4" style="padding-top: 15px;">
                    <p>账号互联</p>
                    <p><i class="fa fa-exchange" style="font-size: 24px;"></i></p>
                </div>
                <div class="layui-col-md4">
                    <p><img th:src="${settings.website_logo_small}" class="layui-circle layui-avatar-model"></p>
                </div>
            </div>
            <blockquote class="layui-elem-quote" style="border-left-color: #F44336;font-size: 14px;color: #909090;">请输入本站账号密码，没有则自动注册，请牢记！</blockquote>
            <div class="login-body">
                <div class="layui-form-item">
                    <label><i class="layui-icon layui-icon-username"></i> </label>
                    <input type="text" name="npname" lay-verify="username" autocomplete="off" th:value="${source+'_'+username}"
                           placeholder="用户名" class="layui-input">
                </div>
                <div class="layui-form-item layui-hide">
                    <label><i class="layui-icon layui-icon-user"></i> </label>
                    <input type="text" name="nickname" th:value="${nickname}" autocomplete="off"
                           placeholder="用户昵称" class="layui-input">
                </div>
                <div class="layui-form-item layui-hide">
                    <label><i class="layui-icon layui-icon-user"></i> </label>
                    <input type="email" name="email" th:value="${email}" autocomplete="off"
                           placeholder="用户邮箱" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <label><i class="layui-icon layui-icon-password"></i> </label>
                    <input type="password" name="nppass" lay-verify="pass" autocomplete="off" th:value="${''}"
                           placeholder="密码" class="layui-input">
                </div>
                <div class="layui-form-item">
                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-xs7">
                            <label for="NB-user-vercode" style="margin-top: 8px;margin-left: 7px;"><i
                                    class="layadmin-user-login-icon layui-icon layui-icon-vercode"></i> </label>
                            <input type="text" name="npcode" id="LAY-user-login-vercode" lay-verify="required" autocomplete="off"
                                   placeholder="验证码" class="layui-input">
                        </div>
                        <div class="layui-col-xs5">
                            <div>
                                <img src="/image/code" class="layadmin-user-login-codeimg" id="NB-user-vercode"
                                     onclick="captchaRefresh(this)">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div id="slider"></div>
                </div>
                <div class="layui-form-item layui-hide">
                    <button id="v5Login" class="layui-btn layui-btn-fluid" lay-submit lay-filter="npLoginSubmit">登 入
                    </button>
                </div>
                <div class="layui-form-item login-footer">
                    <a th:if="${isOpenRegister}" href="/np-register" style="float: right;"><i style="font-size: 14px;">没有账号，前往注册</i></a>
                    <a href="/" style="float: right;margin-right: 5px;"><b>前往主页</b></a>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="layui-trans layadmin-user-login-footer footer-login" style="z-index: -100;">

    <p><i class="fa fa-graduation-cap"></i> 2020 <a href="//wuwenbin.me/content/u/deployDoc" target="_blank">NotePress &copy;</a></p>
    <p>
        <span><a href="//wuwenbin.me" target="_blank">作者博客</a></span>
        <span><a target="_blank"
                 href="//shang.qq.com/wpa/qunwpa?idkey=40c11d21b7369a629d987dbe15410bc69e65a17abb2b7f9f1e591b2490bf5621">加入QQ群</a></span>
    </p>
</div>

<script src="/static/def/plugins/layui/layui.js"></script>
<script src="/static/def/plugins/jquery/jquery-1.11.3.min.js"></script>
<script src="/static/def/plugins/md5/md5.min.js"></script>
<script src="/static/def/js/notepress.js"></script>
<script th:inline="javascript">
    var isOpenQqLogin = [[${isOpenQqLogin}]];
    var source = [[${source}]];
    var uuid = [[${uuid}]];
    var avatar = [[${avatar}]];
    if (self !== top) {
        parent.window.location.replace(window.location.href);
    }
</script>
<script>
    layui.config({
        base: '/static/def/plugins/layui/lay/modules/'
    }).extend({
        sliderVerify: 'sliderVerify'
    });
</script>
<script src="/static/def/js/bind.js"></script>
</body>
</html>
